b = {}
d =0

for _ in range(3):
    e = input("请输入班级名称: ")
    f = int(input("请输入选修人数: "))
    b[e] = f
    d +=f

print("任务2: 选修该课程的总人数为:", d)